package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 定时任务日志
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Getter
@Setter
@TableName("schedule_job_log")
@ApiModel(value = "ScheduleJobLog对象", description = "定时任务日志")
public class ScheduleJobLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("任务日志id")
      @TableId(value = "log_id", type = IdType.AUTO)
    private Long logId;

    @ApiModelProperty("任务id")
    private Long jobId;

    @ApiModelProperty("spring bean名称")
    private String beanName;

    @ApiModelProperty("参数")
    private String params;

    @ApiModelProperty("任务状态    0：成功    1：失败")
    private Integer status;

    @ApiModelProperty("失败信息")
    private String error;

    @ApiModelProperty("耗时(单位：毫秒)")
    private Integer times;

    @ApiModelProperty("创建时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
